<div class="Subhead">
  <div class="Subhead-heading"><%= t(".Transfer docs") %></div>
  <div class="Subhead-description">
    <%= t(".When you wants move docs into other repository") %>
  </div>
</div>

<div class="mb-5">
  <%= group_name_tag(@user) %>
  <span class="divider">/</span>
  <%= repository_name_tag(@repository) %>
</div>

<%= form_for(@repository, url: transfer_user_repository_docs_path(@user, @repository), method: :post) do |f| %>
    <div class="box">
      <div class="box-header"><%= t(".Select doc to transfer") %></div>
      <ul style="max-height: 350px; overflow-y: scroll;">
        <% @repository.docs.each do |doc| %>
        <li class="box-row">
          <label for="doc-<%= doc.id %>-checkbox" style="font-weight: normal;" class="display-block clearfix">
           <input id="doc-<%= doc.id %>-checkbox" type="checkbox" class="form-checkbox float-left mr-3 doc-checkbox" name="transfer[doc_ids][]" value="<%= doc.id %>" />
           <div class="title"><%= doc.title %></div>
           <div class="slug text-gray"><%= doc.slug %></div>
          </label>
        </li>
        <% end %>
      </ul>
    </div>

    <div class="form-group">
      <label class="control-label"><%= t(".To repository") %></label>
      <%= render "/shared/user_repositories_select_menu", input_name: "transfer[repository_id]", value: params.dig(:transfer, :repository_id) %>
    </div>

    <div class="form-group">
      <button type="submit" class="btn btn-primary"><%= t(".Transfer now") %></button>
    </div>
  </div>
<% end %>